<?php
// Interface definition for the DB abstraction

// Include the specific DB implementations
require_once("db_mysql.php");

interface db {
	
	public static init($dbType, $server, $user, $password)
	{
		if($dbType == "mysql")
			return new db_mysql($server, $user, $password);
		else
			return null;
	}
	
	public function selectDatabase($dbName);
	public function insertValues($tableName, $record);
	public function sendSelectQuery($tableName, $fields, $whereClause);
	public function fetchResult();
	
};


?>
	